#include <stdio.h>

#define MaxCol 10

typedef int ElemType;

typedef struct Node1
{
    ElemType data[MaxCol];
    struct Nodel * next;
}DList;

typedef struct Node2
{
    int Row,Col;
    DList * next;
} HList;

void CreateTable(HList * h)
{
    int i ,j;
    DList * r,* s;
    h = (HList * )malloc(sizeof(HList));
    h -> next = NULL;
    printf("表的行数，列数");
    scanf(" % d % d", &h -> Row,&h -> Col);
    for(i=0;i<h- >Row;i++)
    {
        prinf("第%d行：", i+1);
        s = (DList * )malloc(sizeof(DList));
        for(j=0;j<h->Col;j++)
            scanf(" %d", &s->data[j]);
        if(h ->next==NULL)
            h->next = s;
        else
            r->next = s;
        r=s;
    }
    r->next=NULL;
}